#pragma once
#ifndef GFXENTITYMODEL_H
#define GFXENTITYMODEL_H

//window include
#include <windows.h>
#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN

//directx include
//#include <d3dx9.h>

#include "Visualisation.h"
#include "GfxEntity.h"
#include <string>
using namespace std;

class CGfxEntityModel :public CGfxEntity
{
protected:
	LPD3DXMESH m_mesh;
	LPD3DXBUFFER m_materialBuffer;
	DWORD m_numMaterials;

	D3DXMATERIAL* m_d3dxMaterials;
	D3DMATERIAL9* m_meshMaterials;
	LPDIRECT3DTEXTURE9* m_meshTextures;
public:
	CGfxEntityModel(void);
	~CGfxEntityModel(void);
	bool load(string filepath);
	virtual void doRender();

	//gettors
	LPD3DXMESH getMesh();

};

#endif

